home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / RIncludes / CommResources.r < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  6.2 KB  |  271 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CommResources.r
  3.  
  4.      Contains:    Communications Toolbox Resource Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __COMMRESOURCES_R__
  19. #define __COMMRESOURCES_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25.  
  26. /*----------------------------tbnd • Tool resource bundle list ------------------*/
  27. type 'cbnd' {
  28.         integer = $$CountOf(TypeArray) - 1;
  29.         array TypeArray {
  30.                 literal longint;                                /* Type                 */
  31.                 integer = $$CountOf(IDArray) - 1;
  32.                 wide array IDArray {
  33.                         integer;                                /* Local ID             */
  34.                         integer;                                /* Actual ID            */
  35.                 };
  36.         };
  37. };
  38.  
  39. /*----------------------------fbnd • Tool resource bundle list ------------------*/
  40. type 'fbnd' as 'cbnd';
  41.  
  42. /*----------------------------cbnd • Tool resource bundle list ------------------*/
  43. type 'tbnd' as 'cbnd';
  44.  
  45.  
  46. /*----------------------------flst • Font Family List----------------------------*/
  47. type 'flst' {
  48.         integer = $$CountOf(Fonts);                                /* # of fonts            */
  49.         array Fonts {
  50.             pstring;                                            /*         Font NAME        */
  51.             align word;
  52.             unsigned hex integer    plain;                        /*         Font Style        */
  53.             integer;                                            /*        Font Size        */
  54.             integer;                                            /*         Font Mode        */
  55.         };
  56. };
  57.  
  58.  
  59. /*----------------------------caps • Connection tool capabilities list-----------*/
  60.  
  61. /* Define flags for "Channels" field of 'caps' resource */
  62. #define cmData                (1 << 0)
  63. #define cmCntl                (1 << 1)
  64. #define cmAttn                (1 << 2)
  65.  
  66. #define    cmDataNoTimeout         (1 << 4)
  67. #define    cmCntlNoTimeout     (1 << 5)
  68. #define cmAttnNoTimeout     (1 << 6)
  69.  
  70. #define cmDataClean            (1 << 8)
  71. #define cmCntlClean            (1 << 9)
  72. #define cmAttnClean            (1 << 10)
  73.  
  74. //    for end of message field of caps resource
  75. #define cmFlagsEOM            (1 << 0);
  76.  
  77. /* Connection tool capabilities resource */
  78. type 'caps' {
  79.     integer = $$CountOf (PairsArray);
  80.     
  81.     array PairsArray {
  82.  
  83.         switch {
  84.             case Abort:
  85.                 key literal longint     = 'ABRT';
  86.                 literal longint
  87.                     supported         = 1,
  88.                     notSupported     = 0;
  89.     
  90.             case AppleTalkBased:
  91.                 key literal longint        = 'ATLK';
  92.                 longint    appletalkBased        =    1,
  93.                         notAppletalkBased    =    0;
  94.                         
  95.             case Break:
  96.                 key literal longint     = 'BRK ';
  97.                 literal longint
  98.                     synchronousOnly     = 'SYNC',
  99.                     asynchronousOnly     = 'ASYN',
  100.                     both                 = 'BOTH',
  101.                     notSupported         = 0;
  102.                     
  103.             case Channels:
  104.                 key literal longint     = 'CHAN';
  105.                 hex longint;
  106.                     
  107.             case Close:
  108.                 key literal longint     = 'CLOS';
  109.                 literal longint
  110.                     synchronousOnly     = 'SYNC',
  111.                     asynchronousOnly     = 'ASYN',
  112.                     both                 = 'BOTH',
  113.                     notSupported         = 0;
  114.                     
  115.             case EndOfMessage:
  116.                 key literal longint     = 'EOM ';
  117.                 hex longint;
  118.                 
  119.             case Kill:
  120.                 key literal longint     = 'KILL';
  121.                 literal longint
  122.                     supported         = 1,
  123.                     notSupported     = 0;
  124.                     
  125.             case Listen:
  126.                 key literal longint     = 'LSTN';
  127.                 literal longint
  128.                     synchronousOnly     = 'SYNC',
  129.                     asynchronousOnly     = 'ASYN',
  130.                     both                 = 'BOTH',
  131.                     notSupported         = 0;
  132.                     
  133.             case LowLevelIO:
  134.                 key literal longint     = 'LLIO';
  135.                 literal longint
  136.                     supported         = 1,
  137.                     notSupported     = 0;
  138.                     
  139.             case MinimumMemory:
  140.                 key literal longint     = 'MEMM';
  141.                 hex longint;
  142.                     
  143.             case Open:
  144.                 key literal longint     = 'OPEN';
  145.                 literal longint
  146.                     synchronousOnly     = 'SYNC',
  147.                     asynchronousOnly     = 'ASYN',
  148.                     both                 = 'BOTH',
  149.                     notSupported         = 0;
  150.                     
  151.             case Order:
  152.                 key literal longint     = 'ORDR';
  153.                 longint guaranteed         = 1, 
  154.                         notGuaranteed     = 0;
  155.                 
  156.             case Protocol:
  157.                 key literal longint     = 'PROT';
  158.                 literal longint
  159.                     ISDN    = 'ISDN',
  160.                     TCP     = 'TCP ',
  161.                     ADSP     = 'ADSP',
  162.                     NSP     = 'NSP ',
  163.                     LAT     = 'LAT ',
  164.                     NSPg     = 'NSPg',
  165.                     LATg     = 'LATg',
  166.                     Serial     = 'SERD',
  167.                     Modem    = 'MODM',
  168.                     MacPAD     = 'PAD ';
  169.                     
  170.             case Read:
  171.                 key literal longint     = 'READ';
  172.                 literal longint
  173.                     synchronousOnly     = 'SYNC',
  174.                     asynchronousOnly     = 'ASYN',
  175.                     both                 = 'BOTH',
  176.                     notSupported         = 0;
  177.                     
  178.             case RecommendedMemory:
  179.                 key literal longint     = 'MEMR';
  180.                 hex longint;
  181.                     
  182.             case Reliability:
  183.                 key literal longint     = 'RELY';
  184.                 longint guaranteed         = 1, 
  185.                         notGuaranteed     = 0;
  186.                 
  187.             case Service:
  188.                 key literal longint     = 'SERV';
  189.                 literal longint
  190.                     Datagram             = 'DGRM',
  191.                     Stream                 = 'STRM';
  192.             
  193.             case Timeout:
  194.                 key literal longint     = 'TOUT';
  195.                 literal longint
  196.                     supported         = 1,
  197.                     notSupported     = 0;
  198.                     
  199.             case Write:
  200.                 key literal longint     = 'WRIT';
  201.                 literal longint
  202.                     synchronousOnly     = 'SYNC',
  203.                     asynchronousOnly     = 'ASYN',
  204.                     both                 = 'BOTH',
  205.                     notSupported = 0;
  206.                     
  207.             case XTI:                                /* reserved for Apple for now… */
  208.                 key literal longint     = 'XTI ';
  209.                 literal longint
  210.                     notSupported = 0;
  211.                     
  212.         };
  213.     };
  214. };
  215.  
  216. /*----------------------------faps • File Transfer tool capabilities list-----------*/
  217. type 'faps' {
  218.     integer = $$CountOf (PairsArray);
  219.     
  220.     array PairsArray {
  221.         switch {
  222.             case BatchTransfers:                    /* i.e. support for FTSend/FTReceive */
  223.                 key literal longint        = 'BXFR';
  224.                 literal longint
  225.                     supported            =     1,
  226.                     notSupported        =     0;
  227.     
  228.             case FileTypesSupported:                /* types of files that can be transferred */
  229.                 key literal longint        = 'TYPE';
  230.                 literal longint
  231.                     textOnly            =    'TEXT',
  232.                     allTypes            =    '????';
  233.                 
  234.             case TransferModes:                        /* send/receive or both */
  235.                 key literal longint     = 'MODE';
  236.                 literal longint
  237.                     sendOnly            =     'SEND',
  238.                     receiveOnly            =    'RECV',
  239.                     sendAndReceive         =     'BOTH',
  240.                     sendAndReceiveAsync    =    'ASYN',
  241.                     notSupported         =     0;
  242.         };
  243.     };
  244. };
  245.  
  246. /*----------------------------taps • Terminal tool capabilities list-----------*/
  247. type 'taps' {
  248.     integer = $$CountOf (PairsArray);
  249.     
  250.     array PairsArray {
  251.         switch {
  252.             case TerminalSearching:                    /* i.e. support for TMAddSearch */
  253.                 key literal longint        = 'SRCH';
  254.                 literal longint
  255.                     supported            =     1,
  256.                     notSupported        =     0;
  257.     
  258.             case TerminalType:                /* types of files that can be transferred */
  259.                 key literal longint        = 'TYPE';
  260.                 literal longint
  261.                     graphicsTerminal    =    'GRFX',
  262.                     textTerminal        =    'TEXT',
  263.                     both                =    'BOTH';
  264.                 
  265.         };
  266.     };
  267. };
  268.  
  269. #endif /* __COMMRESOURCES_R__ */
  270.  
  271.